package com.sumainfor.pc.gmio.fallback;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.feign.BaseTenantFeign;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Author Eddy·Chen
 * @Email 835033913@qq.com
 * @Create 2019-03-05 12:02
 */
@Component
public class TenantFeignFallback implements BaseTenantFeign {
    @Override
    public JsonResult getWxInfoByTenId(String tenId) {
        return JsonResult.error("租客端服务器异常...");
    }

    @Override
    public JsonResult getTenantCouCount(Map<String, Object> params) {
        return JsonResult.error("租客端服务繁忙！");
    }

    @Override
    public JsonResult UpdateTenantCou(Map<String, Object> params) {
        return JsonResult.error("租客端服务繁忙！");
    }

    @Override
    public List<Map<String, Object>> selectTenantInfo(Map<String, Object> params) {
        return null;
    }

    @Override
    public JsonResult getTenantList() {
        return JsonResult.error("租客端服务器异常...");
    }

    @Override
    public JsonResult getTenIdPhone(Map<String, Object> params) {
        return JsonResult.error("租客端服务器繁忙...");
    }

    @Override
    public List<String> getTenIdListByLikePhoneOrName(String param) {
        return null;
    }

    @Override
    public List<String> getTenIdListByPhoneOrName(String param) {
        return null;
    }

    @Override
    public JsonResult getTenPhone(Map<String, Object> params) {
        return JsonResult.error("租客端服务器繁忙");
    }
}
